<?php 
if(!isset($_SESSION)) 
{ 
session_start(); 
} 

$role = $_SESSION['role'];
$_SESSION['posmanager']=0;
$_SESSION['poscoder']=1;
$_SESSION['postest']=0;

if(array_key_exists("page",$_GET))
        $page  = $_GET['page'];
    else
        $page = 1;
    

    //$abc = ($page-1)*10;
    
include '../operations/connection.php';

$querydetail=mysql_query("SELECT p.NameProject, p.Description,DATE_FORMAT( p.DateStart, '%Y-%m-%d') as DateStart, p.DateComplete, p.IDManager, p.Status
FROM pr_project p,pr_composition c, employee e WHERE ((c.IDEmployee = '$id_employee'  AND e.IDEmployee = c.IDEmployee )
 or (p.IDManager = '$id_employee'  AND e.IDEmployee = p.IDManager )) AND p.IDProject = c.IDProject AND  p.IDProject ='$id'
 GROUP BY p.IDProject ORDER BY p.NameProject ASC 
");

$queryLstMember=mysql_query("SELECT c.IDComposition, c.IDEmployee, c.IDProject, c.Position, c.Status, e.UserName, e.FullName,
        		 e.Position as PositionEmp FROM pr_composition c, employee e 
        		 WHERE c.IDProject = '$id' AND c.IDEmployee = e.IDEmployee and c.Status=0 and e.State = 1 ");
?>
<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css" />
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	bindEventAfterAjax();
});
function bindEventAfterAjax(){
	$("#report tr:not(#mo):even").addClass("odd");
    $("#report tr:not(.odd):not(#mo)").hide();
    $("#report tr:last-child").show();
    
}

function showcommanderrorRecyclebin(indexcomment,idtestproject,id_employee,id,recyclebin,ele,page){
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		   // alert(xmlhttp.responseText);
	        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
	        $("#report tr.odd:not(#mo)").show();
			$("#report tr:not(.odd):not(#mo)").hide();
			$(ele).parent().parent().parent().hide();
	    	$(ele).parent().parent().parent().next("tr").toggle();
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	xmlhttp.open("GET","content-project/comment-project-hide-recyclebin.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang+"&page="+page,true);
	xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
	xmlhttp.send();
}
function showthemcommand(ele){
	$(ele).parent().parent().parent().find("#themcommand").toggle();	
}

function closethemcommand(ele){
	$(ele).parent().parent().toggle();	
}

function closeCommand(){
	$("#report tr.odd:not(#mo)").show();
	$("#report tr:not(.odd):not(#mo)").hide();
}

function javas(ele){
	alert($(ele).parent().find("#ajaxok"))
	$(ele).parent().find("#ajaxok").val("sdfsd");
	
}

function javass(ele){
	alert(ele);
	alert(ele.parentNode)
	alert(ele.parentNode.getElementsByTagName("input"));
	x = ele.parentNode.getElementsByTagName("input");
	for (i=0;i<x.length;i++)
	{	
		if (x[i].getAttribute("id")=='ajaxok'){
			x[i].value='luan';
			break;
		}
		
	}
	
}


function showdetail(){
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    //alert(xmlhttp.responseText);
	        document.getElementById("ajaxdelete").innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","ajax/project_command.php",true);
	xmlhttp.send();
}

var doctitle="";
var doctil="";
var doctilc="424242";
function addStyle1ColorCommand(ele){
	 doctitle = $(ele).parent().parent().parent().find("#titlecomment");	 
	 doctitle.css("color","#B023AB");
	 doctilc = "B023AB";
}

function addStyle2ColorCommand(ele){
	 doctitle = $(ele).parent().parent().parent().find("#titlecomment");	 
	 doctitle.css("color","#B02323");
	 doctilc = "B02323";
}

function addStyle3ColorCommand(ele){
	 doctitle = $(ele).parent().parent().parent().find("#titlecomment");	 
	 doctitle.css("color","#3DA850");
	 doctilc = "3DA850";
}


function addStyleColorButton1(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.color = '#B023AB';
	 $('#titleerrorhidden').val('B023AB');
}	
function addStyleColorButton2(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.color = '#B02323';
	 $('#titleerrorhidden').val('B02323');
} 
function addStyleColorButton3(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.color = '#3DA850';
	 $('#titleerrorhidden').val('3DA850');
}



function delete_test_project(str,idtestproject,idp,idemployee,page,els)

{
	if($('table#report tr:not(.trfoot)').size()==2){
		page = page-1;
		if(page<1) page = 1;
		window.location.assign("content-project/process-delete-test-pro_reload.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&tab=1"+"&page="+page);
		return;
	}
	
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    //alert(xmlhttp.responseText);
	        document.getElementById("ajaxdelete").innerHTML=xmlhttp.responseText;
	        bindEventAfterAjax();
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	xmlhttp.open("GET","content-project/process-delete-test-pro.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&idemp="+idemployee+"&newlang="+lang+"&tab=1"+"&page="+page,true);
	xmlhttp.send();
	
}

function delete_test_project_recyclebin(str,idtestproject,idp,idemployee,page,els)
	{
	if($('table#report tr:not(.trfoot)').size()==2){
		page = page-1;
		if(page<1) page = 1;
		window.location.assign("content-project/process-delete-test-pro-re-bin_reload.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&tab=2"+"&page="+page);
		return;
	}
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	    //alert(xmlhttp.responseText);
        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
        bindEventAfterAjax();
    }
  }
var lang = '<?=$_SESSION['lang']?>';
xmlhttp.open("GET","content-project/process-delete-test-pro-re-bin.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&idemp="+idemployee+"&newlang="+lang+"&tab=2"+"&page="+page,true);
xmlhttp.send();
}

function edittile_testproject(idtestproject,idp,idemployee,color,page,tab){
	$('#adderror').slideUp();
	$.ajax({url:"ajax/testproject_id.php?id="+idtestproject,success:function(result){
		var title = $(result).find('#title').val();
		var content = $(result).find('#content').html();
		var listattach = $(result).find('#listattach').html();//attach
		document.getElementById('addnewerror').style.display = 'none';
		document.getElementById('update').style.visibility='visible';
		document.getElementById('update').style.display = 'inline';
		
		var doctil = document.getElementById('titleerror');
		$('#titleerrorhidden').val(color);
		//alert('wsdf');
		doctil.value= title;
		doctil.style.color="#"+color;
		document.formadderror.idtestproject.value=idtestproject;		
		//var ct = content+"";
		//CKEDITOR.instances['ncontent'].setData(ct);
		document.getElementById('ncontent').value= content;
		$('#uploadresult').html(listattach);//attach
		$('#adderror').slideDown();
		$('#titleerror').focus();
	}});	
}

function edittile_testproject_rebin(idtestproject,idp,idemployee,color,page,content){
	$('#adderror').slideUp();
	$.ajax({url:"ajax/testproject_id.php?id="+idtestproject,success:function(result){
		$('input#page').val(page);
		$('input#content').val(content);
		var title = $(result).find('#title').html();
		var content = $(result).find('#content').html();
		var listattach = $(result).find('#listattach').html();//attach
		document.getElementById('addnewerror').style.display = 'none';
		document.getElementById('update').style.visibility='visible';
		document.getElementById('update').style.display = 'inline';
		
		var doctil = document.getElementById('titleerror');
		$('#titleerrorhidden').val(color);
		//alert('wsdf');
		doctil.value= title;
		doctil.style.color="#"+color;
		document.formadderror.idtestproject.value=idtestproject;		
		var ct = content+"";
		CKEDITOR.instances['ncontent'].setData(ct);
		$('#uploadresult').html(listattach);//attach
		$('#adderror').slideDown();
		$('#titleerror').focus();
	}});	
}
function setTitleValues_EditPro(){
	if(doctil==""){
		document.formadderror.titleerror.value = document.getElementById('titleerror').value+"-%$#@!-#424242";
	}else{
		alert('color title === ' + document.formadderror.titleerror.value);
		document.formadderror.titleerror.value =doctil;
	}
}


function delete_comment(idcomment,idtestpro,idemployee,ele)
{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    $(ele).parent().parent().parent().parent().html(xmlhttp.responseText);
		    $(ele).parent().parent().parent().parent().parent().parent().find("#titlecomment").val('');
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	xmlhttp.open("GET","content-project/delete-comment.php?idcomment="+idcomment+"&idtestpro="+idtestpro+"&idemp="+idemployee+"&newlang="+lang,true);
	xmlhttp.send();

}

function add_comment(idtestpro,idemployee,ele)
{
	if($('textarea#titlecomment').val()==''){
		$('textarea#titlecomment').focus();
		return;
	}

	var comment ="";
	var stylecolor = doctilc;
	comment = $(ele).parent().parent().find("#titlecomment").val();
	var lang = '<?=$_SESSION['lang']?>';
	$.ajax({url:"content-project/add-comment.php", data:{idtestpro:idtestpro,idemp:idemployee,stylecolor:stylecolor,comment:comment,newlang:lang}, success:function(result){

		$(ele).parent().parent().find("#titlecomment").val('');
	    $(ele).parent().parent().find("#titlecomment").css("color","#424242");
	    $(ele).parent().parent().hide();
	    $(ele).parent().parent().parent().find('#ajaxcomment').html(result);
	    doctilc = "424242";
	}});

}


function viewcommanderror(indexcomment,idtestproject,id_employee,id,recyclebin,ele)
{
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
		        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
		        $("#report tr.odd:not(#mo)").show();
				$("#report tr:not(.odd):not(#mo)").hide();
				$(ele).parent().parent().parent().hide();
		    	$(ele).parent().parent().parent().next("tr").toggle();
		    }
		  }
		var lang = '<?=$_SESSION['lang']?>';
		xmlhttp.open("GET","content-project/comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang,true);
		xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
		xmlhttp.send();

}

function showcommanderror(indexcomment,idtestproject,id_employee,id,recyclebin,ele,page)
{
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
			   // alert(xmlhttp.responseText);
		        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
		        $("#report tr.odd:not(#mo)").show();
				$("#report tr:not(.odd):not(#mo)").hide();
				$(ele).parent().parent().parent().hide();
		    	$(ele).parent().parent().parent().next("tr").toggle();
		    }
		  }
		var lang = '<?=$_SESSION['lang']?>';
		xmlhttp.open("GET","content-project/comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang+"&page="+page,true);
		xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
		xmlhttp.send();

}

function active_test_project(idtestproject,idp,idemployee,page,ele)
{

	if($('table#report tr:not(.trfoot)').size()==2){
		page = page-1;
		if(page<1) page = 1;
		window.location.assign("content-project/process-active-testproject_reload.php?prdelete="+str+"&idtestproject="+idtestproject+"&id="+idp+"&tab=2"+"&page="+page);
		return;
	}
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
        bindEventAfterAjax();
    }
  }
var lang = '<?=$_SESSION['lang']?>';
xmlhttp.open("GET","content-project/process-active-testproject.php?idtestproject="+idtestproject+"&id="+idp+"&idemp="+idemployee+"&newlang="+lang+"&page="+page,true);
xmlhttp.send();
}

function onclickError(idproject,idemp,page){
	
	var lang = '<?=$_SESSION['lang']?>';
	$.ajax({url:"content-project/listerror.php?idproject="+idproject+"&idemp="+idemp+"&newlang="+lang+"&page="+page, success:function(result){
		document.getElementById("aaa").innerHTML=result;
        bindEventAfterAjax();
	}});
}

function onclickRecycleBin(idproject,idemp,page){
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
	        bindEventAfterAjax();
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	xmlhttp.open("GET","content-project/recyclebin.php?idproject="+idproject+"&idemp="+idemp+"&newlang="+lang+"&pages="+page,true);
	xmlhttp.send();
}
function processEmptyError(idproject,idemployee,page,els){
	
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
	        bindEventAfterAjax();
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	xmlhttp.open("GET","content-project/process-empty-error.php?idproject="+idproject+"&idemp="+idemployee+"&newlang="+lang+"&pages="+page,true);
	xmlhttp.send();
}
</script>
<script type="text/javascript">
        $(document).ready(function() {
            $('.sub_app').hide();
            $('.app_tt:first').addClass('active');
            <?php if(isset($_REQUEST['tab'])){?>
            $('.app_tt:last').show();
            $('.sub_app:last').show();
            <?php }?>
            $('.app_tt').click(function() {
                $('.active').removeClass('active');
                $('.sub_app').slideUp('normal');
                if($(this).next('.sub_app').is(':hidden') == true) {
                $(this).addClass('active');
                $(this).next('.sub_app').slideDown('normal');
                }
            });
            $('.app_tt').hover(function(){//over
                $(this).addClass('on');
            },function() {//out
                $(this).removeClass('on');
            });
            
            $('#<?=$append?>').click();
        });
     </script>
     
     
     
<div class="nav_top" style="width: 100%;">
	<div class="nav_tit">
	<?php echo $l_projectlist;?>
	</div>
	<div class="rehome">
		<a href="mainPhone.php"><?php echo $l_menu?></a>
	</div>
</div>
<br />
<br />
<img src="images/line1.png"
	width="100%" />
<div class="main_app" style="padding-top: 2px;">
	<h3><?php while ($row=mysql_fetch_array($querydetail)){?>
		<span class="top_col"></span><div class="app_tt" style="background:  url('images/icon_down.png') no-repeat scroll left center transparent;padding-left:23px;line-height:30px;">
		<?php echo $l_project." : ".$row[NameProject]?></div>
		<ul class="sub_app">
		<?php 
			$idmanager = $row[IDManager];
			if($row[IDManager]==$_SESSION['IDEmployee']){
			$_SESSION['posmanager']=1;
			}
			$queryManger =mysql_query("SELECT emp.FullName FROM employee emp WHERE emp.IDEmployee = '$idmanager'" );
			?>
			<li style="height :26px;padding-top: 7px;font-weight: normal;"><?php echo $l_project?> : <i><?php echo $row[NameProject]?></i></li>
			<li style="height :26px;padding-top: 7px;font-weight: normal;"><?php echo $l_start_date?> : <?php echo $row[DateStart]?></li>
			<li style="height :26px;padding-top: 7px;font-weight: normal;"><?php echo $l_manager?> : <?php while ($r = mysql_fetch_array($queryManger)){ echo  $r[FullName];}?></li>
			<li style="height :26px;padding-top: 7px;font-weight: normal;"><?php echo $l_status?> : <?php 
					if($row[Status]==0){
						echo $l_status_project_no;
					}else{
						echo $l_status_project_done;
					}
					?></li>
			<li style="height :26px;padding-top: 7px;font-weight: normal;"><?php echo $l_description?> : <?php echo $row[Description]?></li>
		
		</ul><?php }?>
	</h3>
	<h3>
		<span class="top_col"></span><div class="app_tt" style="background:  url('images/icon_down.png') no-repeat scroll left center transparent;padding-left:23px;line-height:30px;"><?=$l_listmember ?> </div>
		<div class="sub_app">
			<table id="listProM" style="width: 100%;" class="cssTable">
				<thead>
					<tr>
					<td class="titleComp" style="border-right: 1px #7d7d7d dotted;width: 50%;"><?php echo $l_tester_team?></td>
					<td class="titleComp" style="width: 50%;"><?php echo $l_coder_team?></td>
					</tr>
					
					<tr>
					<?php 
					$row_array = array();
					$index = 0;
					while ($row = mysql_fetch_array($queryLstMember)){
							$row_array[$index][0] = $row[IDEmployee];
							$row_array[$index][1] = $row[Position];
							$row_array[$index][2] = $row[FullName];
							$row_array[$index][3] = $row[Status];
							$index += 1;
						}
						?>
					<td style="vertical-align: top;border-right: 1px #7d7d7d dotted;width: 50%;">
						<ul class="composition">
						<?php 
						foreach ($row_array as $row){
						if(($row[0]==$_SESSION['IDEmployee']) && ($row[1]==0)){
							$_SESSION['postest']=1;
						}
						if($row[1]==0){?>
							<li class="itemCom" style="font-weight: normal;width: 60%"><?php 	echo $row[2];
							if($row[3]==1) echo "<font style='font-weight: bold;'> (Not working)</font>";
							?>
							</li>
							<?php }} ?>
						</ul>
					</td>
					<td style="vertical-align: top;width: 50%;">
						<ul class="composition">
						<?php
						foreach ($row_array as $rowCoder){
						 if($rowCoder[1]==1){?>
							<li class="itemCom" style="font-weight: normal;width: 60%;"><?php 	echo $rowCoder[2];
							if($rowCoder[3]==1) echo "<font style='font-weight: bold;'> (Not working)</font>";
							?>
							</li>
							<?php } ?>
							<?php }?>
						</ul>
					</td>
					</tr>
					
				</thead>
			</table>
		</div>
	</h3>
	<?php if($role==1 || ($_SESSION['posmanager']==1) || ($_SESSION['postest']==1)) {?>
	<h3>
		<span class="top_col"></span><div class="app_tt" style="background:  url('images/icon_down.png') no-repeat scroll left center transparent;padding-left:23px;line-height:30px;"  ><?=$l_add_error ?> </div>
			<div class="sub_app" id="adderror">
			
			<div class="rf-p divinvi" style="width: 100%;">
			<form action="content-project/process-adderror.php" method="get" name="formadderror" id="formadderror" onsubmit="if($('#titleerror').val()==''){$('#titleerror').focus();return false;}else{return true;}">
			<div style="width: 100%">
			<ul class="buttonColor">
					<li style="vertical-align: middle;font-weight: normal;"><input id="buttonB023AB" type="button" class="button1" name="buttonB023AB" onclick="addStyleColorButton1();"/> <?php echo $l_no_fix?>
					</li>
					<li style="vertical-align: middle;font-weight: normal;"><input type="button" class="button2" name="buttonB02323"  onclick="addStyleColorButton2();" /> <?php echo $l_error?>
					</li>
					<li style="vertical-align: middle;font-weight: normal;"><input type="button" class="button3" name="button3DA850"  onclick="addStyleColorButton3();"/> <?php echo $l_fix_complete?>
					</li>
				</ul>
			</div>
			<div class="rf-p-b">
				
				<br class="clear" />
				 <input type="hidden" name='id' value="<?=$id?>" />
				 <input type="hidden" name='page' value="<?=$page?>" id="page"/>
				 <input type="hidden" name='tab' value="<?=$tab?>" id="tab"/>
				  <input type="hidden" name='idtestproject'/>
					 <span style="display: block; text-align: left"><?php echo $l_title?>:</span> 
					 <input type="text" class="intext" style="color: #424242" name="titleerror" id="titleerror" />
					 <input type="hidden" class="intext" style="color: #424242" value='424242' name="titleerrorhidden" id="titleerrorhidden" />
					 <br/>
					 <span style="display: block; text-align: left"><?php echo $l_content?>: </span>
					 <textarea rows="" cols="" id="ncontent" class="ncontent" name="ncontent" style="width: 100%"></textarea>
					
					 <table width="100%">
					  <tr> 
						  
						  <td style="text-align:center;" valign="top" > 
							  <input class="buttonProject" type="submit" style="margin: 5px 0;" id="addnewerror" name="addnewerror" value="<?php echo $l_add_error?>" />
						      <input class="buttonProject"  type="submit" style="margin: 5px 0;visibility: hidden;display: none;" id="update" name="update" value="<?=$l_update?>" />
							  <input class="buttonProject"  type="reset" onclick="return cancelAddErr('adderror');$('#formadderror:adderror').value='';" style="margin: 5px 0;" value="<?php echo $l_cancel?>" />
						  </td> 
					  </tr>
					</table>
					  	
				<div style="text-align: right">
					
				</div>
			</div>
			</form>	
				
		</div>
			</div>
	</h3>
	<?php }?>
	<h3>
		<div style="margin-top: 10px; width: 100%;" >
		<span class="top_col"></span><div class="app_tt" style="background:  url('images/icon_down.png') no-repeat scroll left center transparent;padding-left:23px;line-height:30px;"><?=$l_list_error ?> </div>
			<div class="sub_app" id="aaa">
			<?php 
				$tabi = "include-list-error-pro.php";
			if (isset($_REQUEST['tab'])) {
				if ($_REQUEST['tab']==1) {
					$tabi = "include-list-error-pro.php";
				}else{
					$tabi = "include-list-rebin.php";
				}
			}
			include $tabi;?>
			</div>
		</div>
	</h3>
</div>